<template>
	<view class="padding flex flex-direction">
		<view class="cu-form-group">
			<view class="title">原密码</view>
			<input type="password" v-model="form.oldLoginPass"></input>
		</view>
		<view class="cu-form-group">
			<view class="title">新密码</view>
			<input type="password" v-model="form.loginPass"></input>
		</view>
		<view class="cu-form-group">
			<view class="title">重复密码</view>
			<input type="password" v-model="form.reLoginPass"></input>
		</view>
		<button class="cu-btn bg-blue lg" @click="clickSubmit">修改</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				form:{
					oldLoginPass:'',
					loginPass:'',
					reLoginPass:''
				}
			};
		},
		methods:{
			clickSubmit(){
				this.$u.api.admin_editSelf(this.form).then(data => {
					uni.reLaunch({
						url:'/pages/admin/login'
					})
				})
			}
		}
	}
</script>

<style lang="scss">

</style>
